package com.example.rbac.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("sys_permission")
public class Permission implements Serializable {
    private static final long serialVersionUID = 1L;
    
    @TableId
    private Long id;
    private String name;
    private String permissionKey; // 权限标识，用于接口权限控制
    private String url; // 接口URL
    private String method; // 请求方法
    private Integer type; // 权限类型
    private Long parentId;
    private Integer orderNum;
    private String icon;
    private Integer status;
    private Date createTime;
    private Date updateTime;
    private Long createBy;
    private Long updateBy;
}